import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { User } from '../users/entities/user.entity';
import { Role } from '../roles/entities/role.entity';
import { Menu } from '../menus/entities/menu.entity';
import { OperationLog } from '../logs/entities/operation-log.entity';

export const databaseConfig: TypeOrmModuleOptions = {
  type: 'mysql',
  host: 'localhost',
  port: 3306,
  username: 'root',
  password: '12345678',
  database: 'nest-test',
  entities: [User, Role, Menu, OperationLog],
  synchronize: true,
  logging: true,
}; 